package client;

import java.text.SimpleDateFormat;
import java.util.Date;

public class MesHistory {
    private String message;
    private String date;
    public MesHistory(String message) {
        this.message = message;
        this.date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
    }

    public String getMessage() {
        return message;
    }

    public String getDate() {
        return date;
    }

    @Override
    public String toString() {
        return "MesHistory{" +
                "message='" + message + '\'' +
                ", date='" + date + '\'' +
                '}';
    }
}
